<?php foreach($notes as $class => $class_note): ?>
<table class="table table-border table-striped methods">
	<thead>
		<tr>
			<th>Method</th>
			<th>Arguments</th>
			<th>Returns</th>
			<th>Description</th>
		</tr>
	</thead>
	<tbody>
		<?php foreach($class_note['Public Methods'] as $i => $method_note): ?>
		<?php list($method, $tmp) = explode('(', str_replace('public function ', '', $method_note['code']), 2); if(in_array($method, $exclude)) { continue; } ?>
		<tr>
			<td width="400">
				<code>
					<?php if($chain): ?>
					$<?php echo $chain.'->'.str_replace('public function ', '', $method_note['code']); ?>;
					<?php else: ?>
					<?php echo str_replace('public function ', '', $method_note['code']); ?>
					<?php endif; ?>
				</code>
			</td>
			<td width="200">
				<?php if(isset($method_note['attributes']['param']) 
				&& is_string($method_note['attributes']['param']) 
				&& trim($method_note['attributes']['param'])): ?>
				<?php if(strpos($method_note['attributes']['param'], ' ') !== false): ?>
				<?php list($type, $note) = explode(' ', $method_note['attributes']['param'], 2); ?>
				<ol><li><strong><?php echo $type; ?></li></strong> - <?php echo $note; ?></ol>
				<?php else: ?>
				<ol><li><?php echo $method_note['attributes']['param']; ?></li></ol>
				<?php endif; ?>
				<?php elseif(isset($method_note['attributes']['param']) 
				&& is_array($method_note['attributes']['param']) 
				&& !empty($method_note['attributes']['param'])): ?>
				<ol>
					<?php foreach($method_note['attributes']['param'] as $argument): ?>
					<?php if(strpos($argument, ' ') !== false): ?>
					<?php list($type, $note) = explode(' ', $argument, 2); ?>
					<li><strong><?php echo $type; ?></li></strong> - <?php echo $note; ?>
					<?php else: ?>
					<li><?php echo $argument; ?></li>
					<?php endif; ?>
					<?php endforeach; ?>
				</ol>
				<?php else: ?>
				<em>none</em>
				<?php endif; ?>
			</td>
			<td>
				<?php if(isset($method_note['attributes']['return']) 
				&& trim($method_note['attributes']['return'])): ?>
				<?php if($method_note['attributes']['return'] == 'this'): ?>
				<?php echo $class; ?>
				<?php elseif(strpos($method_note['attributes']['return'], ' ') !== false): ?>
				<?php list($type, $note) = explode(' ', $method_note['attributes']['return'], 2); ?>
				<strong><?php echo $type; ?></strong> - <?php echo $note; ?>
				<?php else: ?>
				<?php echo $method_note['attributes']['return']; ?>
				<?php endif; ?>
				<?php else: ?>
				void
				<?php endif; ?>
			</td>
			<td width="200"><?php echo implode(' ', $method_note['description']); ?></td>
		</tr>
		<?php endforeach; ?>
	</tbody>
</table>
<?php break; endforeach; ?>